//
//  FPNumberPadSingleton.m
//  ShoppingExperience
//
//  Created by LiYinDi on 15/11/10.
//  Copyright © 2015年 RuiBen. All rights reserved.
//

#import "FPNumberPadSingleton.h"
static id _instance;
@implementation FPNumberPadSingleton
-(id)init
{
    if (self==[super init]) {
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken,^
                      {
                          
                      });
    }
    return self;
}
+(id)allocWithZone:(struct _NSZone *)zone
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken,^
                  {
                      _instance=[super allocWithZone:zone];
                  });
    return _instance;
}
-(void)setNumberPadTextField:(UITextField *)numPadTextField
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken,^
                  {
                    FPNumberPadView *numberPadView1 = [[FPNumberPadView alloc] initWithFrame:CGRectMake(0, 0, 948, 340)];
                     
                      numberPadView1.textField=numPadTextField;
                      
                    
                  });

}
+(instancetype)sharedNumberPadSingleton
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken,^
                  {
                      _instance=[[self alloc] init];
                  });
    return _instance;
}
@end
